home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / SLGConst.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  6.6 KB  |  229 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLGConst.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLGCONST_K
  11. #define SLGCONST_K
  12.  
  13. //========================================================================================
  14. //    Inks
  15. //========================================================================================
  16.  
  17. enum FW_EStandardInks
  18. {
  19.     FW_kNormalInk,
  20.     FW_kNormalTextInk,
  21.     FW_kInvertInk,
  22.     FW_kWhiteEraseInk
  23. };
  24.  
  25. //========================================================================================
  26. //    Style dash kinds
  27. //========================================================================================
  28.  
  29. enum FW_EStyleDash
  30. {
  31.     FW_kSolidLine,
  32.  
  33.     FW_kDash,
  34.     FW_kDot,
  35.     FW_kDashDot,
  36.     FW_kDashDotDot,
  37.     
  38.     FW_kOpaque                 = 0x100,
  39.     
  40.     FW_kDashOpaque            = FW_kDash            + FW_kOpaque,
  41.     FW_kDotOpaque            = FW_kDot            + FW_kOpaque,
  42.     FW_kDashDotOpaque        = FW_kDashDot        + FW_kOpaque,
  43.     FW_kDashDotDotOpaque    = FW_kDashDotDot    + FW_kOpaque
  44. };
  45.  
  46. //========================================================================================
  47. //    Styles
  48. //========================================================================================
  49.  
  50. enum FW_EStandardStyles
  51. {
  52.     FW_kNormalStyle,
  53.     FW_kDashStyle,
  54.     FW_kDotStyle,
  55.     FW_kDashDotStyle,
  56.     FW_kDashDotDotStyle
  57. };
  58.  
  59. //========================================================================================
  60. //    Fonts
  61. //========================================================================================
  62.  
  63. enum FW_EStandardFonts
  64. {
  65.     FW_kNormalFont,
  66.     FW_kSystemFont,
  67.     FW_kHelvetica12,
  68.     FW_kTimes12,
  69.     FW_kCourier12,
  70.     FW_kPalatino12
  71. };
  72.  
  73. //========================================================================================
  74. //    Font Style
  75. //========================================================================================
  76.  
  77. typedef unsigned short FW_FontStyle;
  78.  
  79. enum FW_EFontStyles
  80. {
  81.     FW_kPlain             = 0x0000,
  82.     FW_kBold             = 0x0001,
  83.     FW_kItalic             = 0x0002,
  84.     FW_kUnderline         = 0x0004,
  85.     FW_kOutline         = 0x0008,
  86.     FW_kShadow             = 0x0010,
  87.     FW_kCondensed         = 0x0020,
  88.     FW_kExtended         = 0x0040,
  89.     FW_kStrikeOut         = 0x0080
  90. };
  91.  
  92. //========================================================================================
  93. //    Transfer Modes
  94. //========================================================================================
  95.  
  96. typedef unsigned long FW_TransferModes;
  97.  
  98. #define FW_kCopy                0xFFFF0000L
  99. #define FW_kNotCopy                0xFFFF0001L
  100. #define FW_kOr                    0xFFFF0002L
  101. #define FW_kNotOr                0xFFFF0003L
  102. #define FW_kXOr                    0xFFFF0004L
  103. #define FW_kNotXOr                0xFFFF0005L
  104. #define FW_kClear                0xFFFF0006L
  105. #define FW_kNotClear            0xFFFF0007L
  106. #define FW_kHilite                0xFFFF0008L
  107.  
  108. #define FW_kErase                0xFFFF0009L        // 'Special' Transfer Mode
  109. #define FW_kInvert                0xFFFF000AL        // 'Special' Transfer Mode
  110. #define FW_kSystemHilite        0xFFFF000BL
  111.  
  112. #define FW_kPrivLastTransferMode    FW_kSystemHilite
  113.  
  114. //========================================================================================
  115. //    Rendering Verbs
  116. //========================================================================================
  117.  
  118. enum FW_ERenderVerbs
  119. {
  120.     FW_kNoRendering,
  121.     FW_kFrame,
  122.     FW_kFill
  123. };
  124.  
  125. //========================================================================================
  126. //    Single-line Text Alignment Options
  127. //========================================================================================
  128.  
  129. typedef unsigned short FW_TextAlignment;
  130.  
  131. enum
  132. {
  133.     // Horizontal alignment
  134.     FW_kTextAlignLeft                        =    0,        // default
  135.     FW_kTextAlignRight                        =    0x0001,
  136.     FW_kTextAlignHCenter                    =    0x0002,
  137.     
  138.     FW_kPrivTextAlignHorzAlignMask            =    0x000F,
  139.  
  140.     // Vertical alignment
  141.     FW_kTextAlignTop                        =    0,        // default
  142.     FW_kTextAlignBottom                        =    0x0010,
  143.     FW_kTextAlignBaseLine                    =    0x0020,
  144.     FW_kTextAlignVCenter                    =    0x0040,
  145.     
  146.     FW_kPrivTextAlignVertAlignMask            =    0x00F0,
  147.     
  148.     // Position to use
  149.     FW_kTextAlignUseSpecifiedPos            =     0,        // default
  150.     FW_kTextAlignUseCurrentPos                =    0x0100,
  151.     
  152.     FW_kPrivTextAlignUsePosMask                =    0x0F00
  153. };
  154.  
  155. //========================================================================================
  156. //    Text Box Alignment Options
  157. //========================================================================================
  158.  
  159. typedef unsigned short FW_TextBoxOptions;
  160.  
  161. enum
  162. {
  163.     // Horizontal justification
  164.     FW_kTextBoxJustifyLeft                    = 0,        // default
  165.     FW_kTextBoxJustifyRight                    = 0x0001,
  166.     FW_kTextBoxJustifyHCenter                = 0x0002,
  167.     
  168.     FW_kPrivTextBoxHorzJusificationMask        = 0x000F,
  169.     
  170.     // Vertical jusitification
  171.     FW_kTextBoxJustifyTop                    = 0,        // default
  172.     FW_kTextBoxJustifyBottom                = 0x0010,
  173.     FW_kTextBoxJustifyVCenter                = 0x0020,
  174.  
  175.     FW_kPrivTextBoxVertJusificationMask        = 0x00F0,
  176.     
  177.     // Should the text be clipped to the box?  If not, make sure the box is large enough
  178.     FW_kTextBoxNoClipToBox                    = 0,
  179.     FW_kTextBoxClipToBox                    = 0x0100,    // default
  180.  
  181.     // The options below apply only if the following flag is not set
  182.     FW_kTextBoxSingleLine                    = 0x0200,
  183.     
  184.     // Word wrapping and breaking options
  185.     FW_kTextBoxWordWrap                        = 0x0400,
  186.     FW_kTextBoxWordBreak                    = 0x0800
  187. };
  188.  
  189.  
  190. //========================================================================================
  191. // Icon drawing
  192. //========================================================================================
  193. //    [HLX] I can't use <Icons.h> because of ODFrc
  194.  
  195. typedef unsigned short FW_RenderIconAlignment;
  196.  
  197. enum
  198. {
  199.     FW_kIconAlignNone                    = 0x0,
  200.     FW_kIconAlignVCenter                = 0x1,
  201.     FW_kIconAlignTop                    = 0x2,
  202.     FW_kIconAlignBottom                    = 0x3,
  203.     FW_kIconAlignCenter                    = 0x4,
  204.     FW_kIconAlignAbsoluteCenter            = FW_kIconAlignVCenter | FW_kIconAlignCenter,
  205.     FW_kIconAlignCenterTop                = FW_kIconAlignTop | FW_kIconAlignCenter,
  206.     FW_kIconAlignCenterBottom            = FW_kIconAlignBottom | FW_kIconAlignCenter,
  207.     FW_kIconAlignLeft                    = 0x8,
  208.     FW_kIconAlignCenterLeft                = FW_kIconAlignVCenter | FW_kIconAlignLeft,
  209.     FW_kIconAlignTopLeft                = FW_kIconAlignTop | FW_kIconAlignLeft,
  210.     FW_kIconAlignBottomLeft                = FW_kIconAlignBottom | FW_kIconAlignLeft,
  211.     FW_kIconAlignRight                    = 0xC,
  212.     FW_kIconAlignCenterRight            = FW_kIconAlignVCenter | FW_kIconAlignRight,
  213.     FW_kIconAlignTopRight                = FW_kIconAlignTop | FW_kIconAlignRight,
  214.     FW_kIconAlignBottomRight            = FW_kIconAlignBottom | FW_kIconAlignRight
  215. };
  216.  
  217. typedef unsigned short FW_RenderIconTransform;
  218.  
  219. enum
  220. {    
  221.     FW_kIconTransformNone                    =    0x0000,        //    kTransformNone,
  222.     FW_kIconTransformDisabled                =     0x0001,        //    kTransformDisabled,
  223.     FW_kIconTransformOffline                =     0x0002,        //    kTransformOffline,
  224.     FW_kIconTransformOpen                    =     0x0003,        //    kTransformOpen,
  225.     FW_kIconTransformSelected                =     0x4000        //    kTransformSelected
  226. };
  227.  
  228. #endif // SLGCONST_H
  229.